This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: How to prevent WQO be triggered by event other than opening the form? ~Vanessa Prejipyterader 10.Mar.07 04:36 PM a Web browser Domino Designer All ReleasesWindows XP
This is some code that I use in my close buttons on the web instead of @Command([FileCloseWindow]). As long as you are not passing in any parameters then EditDocument, OpenDocument or OpenForm will always be the last element of the array.
var url = window.location.href.split("?");
//check whether user has put document into edit mode from read mode
if (url[url.length - 1].toUpperCase() == "EDITDOCUMENT") {
window.history.go(-2);
} else {
window.history.go(-1);
}